<div class="content-box">
	<div class="content-box-header">
		<h3><?=$this->lang->line('NEW_IMG')?></h3>	
	</div>	
	<div class="content-box-content"> 
		<div class="" id="tab4">
			<?=form_open_multipart('adm/slide/new_img')?>
			<p>
				<label><?=$this->lang->line('SELECT_IMG')?></label>
				<input type="file" name="image" />
			</p>
			<p>
				<label><?=$this->lang->line('LINK_TO')?></label>
				<input type="text" class="text-input medium-input" name="topic_url" />
			</p>
			<p>
				<input type="submit"  class="button" value="<?=$this->lang->line('UPLOAD')?>" />
			</p>
			</form>
		</div> 
	</div> 
</div>			
<div class="content-box">
	<div class="content-box-header">
		<h3><?=$this->lang->line('SLIDE_IMG')?></h3>	
	</div>	
	<div class="content-box-content"> 
		<div class="" id="tab4">
			<?=form_open('adm/slide/update')?>
			<fieldset>
			<?php foreach($images as $image){?>
				<p class="column-left">
					<?=img(array('src'	=> $image['url'],
								'style'	=> 'max-height:150px',
					))?><br />
					<input type="text" class="text-input medium-input" name="<?=$image['id']?>" value="<?=$image['topic_url']?>" />
					<br />
					<a href="<?=site_url('adm/slide/delete/'.$image['id'])?>"><?=$this->lang->line('DELETE')?></a>
				</p>
			<?php }?>
			</fieldset>
				<p><input type="button" class="button" value="<?=$this->lang->line('UPDATE')?>" /></p>
			</form>
		</div> 
	</div> 
</div>			
		